<!--存储报警-->
<template>
  <div class="tab2">
    <el-table
      :data="tab2TableData"
      highlight-current-row
      border
      height="100%"
      :row-style="{height:'40px'}"
      :cell-style="{padding:'0px'}"
      :header-cell-style="{background: '#FAFAFA', padding: 0, height: '40px', color: '#666666'}"
      style="width: 100%">
      <slot v-for="(item,index) in tab2Columns">
        <el-table-column
          :key="index"
          :property="item.field"
          :label="item.title"
          :width="item.width"
          show-overflow-tooltip
          sortable>
        </el-table-column>
      </slot>
    </el-table>
  </div>
</template>

<script>
export default {
  name: '',
  components: {
  },
  data () {
    return {
      tab2TableData: [
        {
          Place: '上海库房',
          Time: '2020-07-08',
          Describe: '事务故障的恢复',
          OP_ID: 'damin',
          Remake: '测试数据1'
        },
        {
          Place: '北京库房',
          Time: '2020-07-10',
          Describe: '事务故障的恢复',
          OP_ID: 'test',
          Remake: '测试数据2'
        }
      ],
      tab2Columns: [
        {
          title: '设备地点',
          field: 'Place'
        },
        {
          title: '报警时间',
          field: 'Time'
        },
        {
          title: '故障描述',
          field: 'Describe'
        },
        {
          title: '操作人',
          field: 'OP_ID'
        },
        {
          title: '备注',
          field: 'Remake'
        }
      ]
    }
  },
  created () {},
  mounted () {},
  methods: {}
}
</script>

<style lang="less" scoped>
.tab2 {
  width: 100%;
  height: 100%;
  padding: 10px;
}
</style>
